﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManagSetIP.aspx.cs" Inherits="ExamV5.ManagSys.ManagSetIP" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function SubmitKeyClick(button) {
            if (event.keyCode == 13) {
                event.keyCode = 9;
                event.returnValue = false;
                document.all[button].click();
            }
        }
		</script>
</head>
<body>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>
      
      <table cellSpacing="0" cellPadding="0" border="0">
	    <tr>
		   <td width=37><img src="../image/BobyTip.gif" border="0" /></td>
           <td>当前位置：<a href='../FrmMain.aspx'>系统首页</a> >  系统综合设置 > 开放地址</td>
	    </tr>
        </table>
        <table cellSpacing="0" cellPadding="0" border="0" width="100%">
        <tr>
           <td  height=51  background="../image/BobyModNameBG.gif">
                    <table cellSpacing="0" cellPadding="0" border="0">
                        <tr>
                            <td width=5></td>
                           <td width="105"  background="../image/HeadTitleAA.gif" height="41" align="center"><a href='ManagSetSys.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu21.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>系统设置</b></font></a></td>
                           <td width="105"  background="../image/HeadTitleBA.gif" height="41" align="center"><a href='ManagSetTime.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose6.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>禁用时间</b></font></a></td>
                           <td width="105"  background="../image/HeadLocalAA.gif" height="41" align="center"><a href='ManagSetIP.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu54.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>开放地址</b></font></a></td>
                           <td width="105"  background="../image/HeadTitleCA.gif" height="41" align="center"><a href='ManagSetRubricName.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose29.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>题型命名</b></font></a></td>
                           <td width="133"  background="../image/HeadTitleDB.gif" height="41" align="center"><a href='ManagWarInfo.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu46.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>考试注意事项</b></font></a></td>
                           <td width="105"  background="../image/HeadTitleEA.gif" height="41" align="center"><a href='ManagSysLog.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose17.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>系统日志</b></font></a></td>
                           
                        </tr>
                   </table>
            </td>
         </tr>
         <tr>
            <td  height=33  background="../image/QueryBG.gif" align="right">
                        <table cellSpacing="0" cellPadding="0" border="0">
                            <tr>
                                <td>

                                    <!--查询区-->
                                    IP地址范围:</td><td><asp:TextBox ID="txtStartIP" runat="server" CssClass="text"  Width="150" MaxLength="15" Height="23"></asp:TextBox>──<asp:TextBox ID="txtEndIP" runat="server" CssClass="text"  Width="150" MaxLength="15" Height="23"></asp:TextBox></td>
                                        <td><asp:Button ID="butAdd" runat="server" Text="新  增"  style='POSITION:relative;TOP:-2px' CssClass="but2B"  onclick="butAdd_Click"/>&nbsp;</td>
                                       
                                   </tr>
                        </table>     
            </td>
         </tr>
         <tr>
                <td>
                                    <!--数据列表区-->
                                    <asp:GridView ID="DataGridInfo" runat="server" AllowPaging="True"  
                                            onpageindexchanging="DataGridInfo_PageIndexChanging" 
                                            AutoGenerateColumns="False" CellPadding="10" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" PageSize="10" 
                                            AllowSorting="True" onsorting="DataGridInfo_Sorting"  
                                            onrowdatabound="DataGridInfo_RowDataBound" DataKeyNames="ID" 
                                            onrowdeleting="DataGridInfo_RowDeleting" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61"></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                           <Columns>
                                                
                                                <asp:BoundField DataField="StartSet" HeaderText="起始IP地址"   SortExpression="StartSet">
                                                </asp:BoundField>
                                               
                                                <asp:BoundField DataField="EndSet" HeaderText="截止IP地址"  SortExpression="EndSet">
                                                </asp:BoundField>
                                              
                                                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LBDel" runat="server" CausesValidation="False"   CommandName="Delete" Text="删除"></asp:LinkButton>
                                                </ItemTemplate>
                                                    <HeaderStyle Width="35px" />
                                                </asp:TemplateField>
                                                
                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
                                     </asp:GridView>
                                    </td>
                                </tr>
                                <tr height="25">
                                    <td><br />
                                    <!--分页区-->
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left">&nbsp;&nbsp;</td>
											<td align="right"><asp:label id="labRescordCount" runat="server">总共&nbsp;<font color='#0000C0'><B>0</B></font>&nbsp;条记录&nbsp;<font color='#0000C0'><B>1/1</B></font>&nbsp;页&nbsp;</asp:label>
												<asp:LinkButton id="LBFirstPage" runat="server" onclick="LBFirstPage_Click">第一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBPrevPage" runat="server" onclick="LBPrevPage_Click">上一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBNextPage" runat="server" onclick="LBNextPage_Click">下一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBLastPage" runat="server" onclick="LBLastPage_Click">最后页</asp:LinkButton>&nbsp;</td>
										</tr>
									    </table>
                                    </td>
                                </tr>
                                </table>
                           </ContentTemplate>
                        </asp:UpdatePanel>
					
    </form>
</body>
</html>
